home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat3 / Tk / getjustify.z / getjustify
Text File  |  1998-10-30  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk))))                                          TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      Tk_GetJustify, Tk_NameOfJustify - translate between strings and
  10.      justification styles
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
  14.  
  15.      Tk_Justify
  16.      TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((_i_n_t_e_r_p, _s_t_r_i_n_g, _j_u_s_t_i_f_y_P_t_r))))
  17.  
  18.      char *
  19.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy((((_j_u_s_t_i_f_y))))
  20.  
  21. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  22.      Tcl_Interp   *_i_n_t_e_r_p       (in)      Interpreter to use for error
  23.                                           reporting.
  24.  
  25.      char         *_s_t_r_i_n_g       (in)      String containing name of           |
  26.                                           justification style (``left'',      |
  27.                                           ``right'', or ``center'').
  28.  
  29.      int          *_j_u_s_t_i_f_y_P_t_r   (out)     Pointer to location in which to
  30.                                           store justify value corresponding to
  31.                                           _s_t_r_i_n_g.
  32.  
  33.      Tk_Justify   _j_u_s_t_i_f_y       (in)      Justification style (one of the
  34.                                           values listed below).
  35.  
  36.  
  37. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  38.      TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy places in *_j_u_s_t_i_f_y_P_t_r the justify value corresponding to
  39.      _s_t_r_i_n_g.  This value will be one of the following:
  40.  
  41.      TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____LLLLEEEEFFFFTTTT
  42.           Means that the text on each line should start at the left edge of
  43.           the line;  as a result, the right edges of lines may be ragged.
  44.  
  45.      TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____RRRRIIIIGGGGHHHHTTTT
  46.           Means that the text on each line should end at the right edge of the
  47.           line;  as a result, the left edges of lines may be ragged.
  48.  
  49.      TTTTKKKK____JJJJUUUUSSSSTTTTIIIIFFFFYYYY____CCCCEEEENNNNTTTTEEEERRRR
  50.           Means that the text on each line should be centered;  as a result,
  51.           both the left and right edges of lines may be ragged.
  52.  
  53.      Under normal circumstances the return value is TTTTCCCCLLLL____OOOOKKKK and _i_n_t_e_r_p is
  54.      unused.  If _s_t_r_i_n_g doesn't contain a valid justification style or an
  55.      abbreviation of one of these names, then an error message is stored in
  56.      _i_n_t_e_r_p->_r_e_s_u_l_t, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR is returned, and *_j_u_s_t_i_f_y_P_t_r is unmodified.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk))))                                          TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74.      TTTTkkkk____NNNNaaaammmmeeeeOOOOffffJJJJuuuussssttttiiiiffffyyyy is the logical inverse of TTTTkkkk____GGGGeeeettttJJJJuuuussssttttiiiiffffyyyy.  Given a
  75.      justify value it returns a statically-allocated string corresponding to
  76.      _j_u_s_t_i_f_y.  If _j_u_s_t_i_f_y isn't a legal justify value, then ``unknown
  77.      justification style'' is returned.
  78.  
  79.  
  80. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  81.      center, fill, justification, string
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.